﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SpaceInvaders
{
    class Shot
    {
        Rectangle colision;
        Texture2D texture;

        public Shot(Rectangle colision)
        {
            this.colision = colision;
        }

        public void Load(ContentManager Content)
        {
            texture = Content.Load<Texture2D>("tiro");
        }

        public void Update(GameTime gameTime)
        {        
            colision.Y--;            
        }

        public void Draw(SpriteBatch spriteBatch)
        {           
            spriteBatch.Draw(texture, colision, Color.White);
        }
    }

}
